package com.doudou.eurekaConsumer.consumer.feign.impl;

import com.doudou.eurekaConsumer.consumer.feign.HelloInterface;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author mazh
 * @date 2021-12-06 10:16
 */
@Service
public class HelloServiceImpl implements HelloInterface {
    private static final String ERROR_MSG = "调用超时，熔断保护！";
    @Override
    public String getHelloMsg() {
        return ERROR_MSG + System.currentTimeMillis();
    }

    @Override
    public String hello(Map<String, Object> params) {
        return ERROR_MSG+ System.currentTimeMillis();
    }
}
